#ifndef __PF_PARSER_H
#define __PF_PARSER_H

#include <stdint.h>

#define PARSER_HIST_NUM 50

typedef struct PARSER_STATS_
{
	uint32_t delay_stats[PARSER_HIST_NUM+1];
	uint32_t delay_avg;

	uint32_t intvl_stats[PARSER_HIST_NUM+1];
	uint32_t intvl_avg;
	
	uint32_t vbr_calc; //real video bitrate 
	uint32_t abr_calc; //real audio bitrate
}PF_PARSER_STATS;

int PF_Parser_Init(unsigned  int rx_buf_len);
void PF_Parser_Deinit();
void PF_Parser_On_Event(void* arg);
void PF_PARSER_Stats_Print();
int PF_Buf_Write_to_Parser(uint8_t *data, int len);
void PF_Get_Parser_Stats_Str(char *strVbr,char *strAbr);


#endif
